import {http} from '../utils/http.js'
//发送验证码
export const getMsgCode=(data)=>{
	return http.get('/code',{params:data})
}

//手机验证码登录
export const getCodeLogin=(data)=>{
	return http.post('/login',data)
}

//密码登录
export const getPasswordLogin=(data)=>{
	return http.post('/login/password',data)
}

//获取个人用户信息
export const getUserInfo=()=>{
	return http.get('/patient/myUser')
}

//退出登录
export const getLoginOut=()=>{
	return http.get('/logout')
}

//添加患者信息
export const getAddPatient=(data)=>{
	return http.post('/patient/add',data)
}

//查询患者列表信息
export const getPatientListInfo=()=>{
	return http.get('/patient/mylist')
}

//删除患者信息
export const deletePatient=(id)=>{
	return http.delete(`patient/del/${id}`)
}

//查询患者详情
export const getPatientDetail=(id)=>{
	return http.get(`/patient/info/${id}`)
}

//编辑患者信息
export const getEditPatientInfo=(data)=>{
	return http.put('/patient/update',data)
}